package cn.cttic.link.api.domain.vo;

import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import cn.cttic.common.translation.annotation.Translation;
import cn.cttic.common.translation.constant.TransConstant;
import cn.cttic.link.api.domain.BaseThirdInterface;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 请求历史视图对象 base_third_interface
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseThirdInterface.class)
public class BaseThirdInterfaceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @ExcelProperty(value = "标识")
    private String id;

    /**
     * 业务ID
     */
    private String businessId;

    /**
     * 接口类型
     */
    private String interfaceType;

    /**
     * 接口类型
     */
    @ExcelProperty(value = "接口类型")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, mapper = "interfaceType", other = "dict_third_interface_type")
    private String interfaceTypeName;

    /**
     * 接口地址
     */
    @ExcelProperty(value = "接口地址")
    private String accessUrl;

    /**
     * 请求类型
     */
    private String requestType;

    /**
     * 请求类型
     */
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, mapper = "requestType", other = "dict_third_interface_request_type")
    private String requestTypeName;

    /**
     * 请求参数
     */
    @ExcelProperty(value = "请求参数")
    private String requestParam;

    /**
     * 请求体
     */
    @ExcelProperty(value = "请求体")
    private String requestBody;

    /**
     * 响应参数
     */
    @ExcelProperty(value = "响应参数")
    private String responseBody;

    /**
     * 响应数据
     */
    private String responseData;

    /**
     * 响应结果
     */
    @ExcelProperty(value = "响应结果")
    private String result;


    /**
     * 创建时间
     */
    private Date createTime;

}
